# coding =utf-8
from matplotlib import pyplot as plat
import numpy as num

print(num.arange(12,20,0.1))


array = num.array([1,2,3],dtype=complex)
print(array)


a=4.7+0.666j           #定义一个虚数
print(a)               #输出这个虚数
print(a.real)          #输出实部
print(a.imag)          #输出虚部
print(a.conjugate())   #输出该复数的共轭复数

a=num.array(num.arange(12),dtype='int16')
print(a)
print(a.dtype)
p4=num.random.random(3)
p5=num.round(p4,1)
print(p4)
print(p5)

# 取csv数据
csv1=num.loadtxt('G:/BeijingPM20100101_20151231.csv',delimiter=';',comments='#',dtype=str,skiprows=1)
print(csv1)
print(csv1[481203:,:])
print('&'*100)
print(csv1[1,2:5])
print('&'*100)
print(csv1[[1,2,3],[0,5,6]])
print(len(csv1))
c1=csv1[:,2]
print(c1)
c1[1]=num.nan
print(c1)

